package com.kuizii.base.util.log;

import com.kuizii.base.constant.ACTION_TYPE;
import com.kuizii.base.constant.LogType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class LogEntity {

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("应用id")
    private String applicationId;

    @ApiModelProperty("应用名称")
    private String applicationName;

    @ApiModelProperty("终端类型 1：PC；2：移动端；")
    private String termType;

    @ApiModelProperty("用户编码")
    private String userCode;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户姓名")
    private String userFullName;

    @ApiModelProperty("日志类型 1：操作；2：登录；3：异常；")
    private LogType type;

    @ApiModelProperty("操作状态")
    Integer optStatus;

    @ApiModelProperty("操作的类型 1：添加；2：修改；3：启用或停用；4：删除；")
    private ACTION_TYPE actionType;

    @ApiModelProperty("开始时间")
    private String beginTime;

    @ApiModelProperty("结束时间")
    private String endTime;

    @ApiModelProperty("耗时")
    private String totalTime;

    @ApiModelProperty("操作描述")
    private String description;

    @ApiModelProperty("spel语法收集的信息")
    private String spelMessage;

    @ApiModelProperty("请求URI")
    private String requestUri;

    @ApiModelProperty("方法类")
    private String methodClass;

    @ApiModelProperty("方法名")
    private String methodName;

    @ApiModelProperty("请求头内容")
    private String headers;

    @ApiModelProperty("请求内容")
    private String params;

    @ApiModelProperty("内容")
    public String message;

    @ApiModelProperty("详情")
    private String detailMsg;
}
